时间选择器
<div class="layui-inline">      
  <label class="layui-form-label">中文版</label>      
   <div class="layui-input-inline">       
      <input type="text" class="layui-input" id="test1" placeholder="yyyy-MM-dd">      
   </div>   
 </div>
js部分
layui.use('laydate', function(){  var laydate = layui.laydate;   
 //常规用法  
laydate.render({    elem: '#test1'  });  
2.On/Off开关绑定后台数据-三目运算判断
 <script type="text/html" id="open">            
   <input value="{{d.flag}}" {{d.flag ==0?'checked':''}}                   
       type="checkbox" name="open" lay-skin="switch" lay-filter="switchTest" lay-text="已审批|未审批" disabled>        </script>
